<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>订单管理</title>
    <%-- 静态包含 base标签、css样式、jQuery文件 --%>
    <%@include file="/pages/common/head.jsp" %>
</head>
<body>

<div id="header">
    <span class="wel_word">订单管理系统</span>
    <div>
        <a href="manager/foodServlet?action=listLimit&id=1">菜品管理</a>
        <a href="index.jsp">返回首页</a>
    </div>
</div>

<div id="main">
    <table>
        <tr>
            <td>用户id</td>
            <td>日期</td>
            <td>金额</td>
            <td>订单编号</td>
            <td>操作</td>
        </tr>
        <c:forEach items="${sessionScope['orderList']}" var="order">
            <tr>
                <td>${order.user_id}</td>
                <td>${order.create_time}</td>
                <td>${order.price}</td>
                <td>${order.order_id}</td>
                <td>
                    <a href="orderServlet?action=deleteOrder&order_id=${order.order_id}" style="text-decoration:none;" >删除</a>
                </td>
            </tr>
        </c:forEach>

    </table>
</div>

<%--静态包含页脚内容--%>
<%@include file="../common/footer.jsp" %>
</body>
</html>